{{extends "base.tpl"}}

{{block name=title}}{{$application_name}} - {{$page.name|escape}}{{/block}}

{{block name=stylesheet}}
  <link rel="stylesheet" href="http://localhost/rap9/core/assets/button/button.css" type="text/css" /> 
<link rel="stylesheet" href="http://localhost/rap9/core/assets/jqueryrte/jquery.rte.css" type="text/css" /> 


  <style type="text/css">

  #body {
    margin: 29px;
    margin-top: 19px;
  }

  #body .buttons {
    margin-top: 0.75em;
  }

  #body .buttons .item {
    margin-right: 0.5em;
  }

  </style>
{{/block}}

{{block name=body}}
	
	<div id="message" style="display: none;">
            </div>
	<div id="waiting" style="display: none;">
                Please wait<br />
                <img src="{{$assets_url}}images/ajax-loader.gif" title="Loader" alt="Loader" />
            </div>
  <form action="{{$page_url}}wiki/save/?page={{$page_name}}" method="post">
    <div>
    <label for="title" id="title">{{$page_name}}</label>
    <textarea type="rteditor" rows="10" cols="50" id="content" style="width: 100%; height: 400px" name="content" class="rteditor">{{$content|escape}}</textarea></div>
    <div class="buttons">
    <INPUT TYPE=HIDDEN id="pagetitle" NAME="pagetitle" value="{{$page_name}}">
    <INPUT TYPE=HIDDEN id="nonce" NAME="nonce" value="{{$salt}}">
        <INPUT TYPE=HIDDEN id="hash" NAME="hash" value="{{$token}}">
      <span class="item"><input style="font-weight: bold" type="submit" value="Save Changes"/></span>
      <span class="item"><input type="button" onclick="location.href='{{$page_url}}?page={{$page_name}}'" value="Cancel"/></span>
    </div>
  </form>
{{/block}}
{{block name=chilikpush}}<div class="buttons3">				
			
			<input id="ajaxsubmit" type="submit" value="  Upload Doc  "  />
		</div>{{/block}}


{{block name=javascript}}
	<script language="javascript" type="text/javascript" src="http://localhost/rap9/core/assets/jqueryrte/jquery.rte.js"></script> 
<script language="javascript" type="text/javascript" src="http://localhost/rap9/core/assets/jqueryrte/jquery.rte.tb2.js"></script> 
        <script type="text/javascript" src="{{$assets_url}}javascript/ajax_send.js"></script>
	<script language="javascript" type="text/javascript"> 
 
                                $(document).ready(function() {
                                        $('textarea#content').rte({
                                            	controls_rte: rte_toolbar,
                                                controls_html: html_toolbar
                                        });
                                });</script> 
{{/block}}
